package com.mojawa.mj_amap

import com.amap.api.maps.model.LatLng
import com.mojawa.mj_amap.location.MJRunAmapUtil

/**
 * 测试代码 -- 换算距离
 */
fun main() {
    val latLngList = listOf(
        LatLng(31.322177650477183,120.85187066719061),
        LatLng(31.322168693985102,120.85184371921963)
    )
    val distance = MJRunAmapUtil.getDistance(latLngList)
    println("距离是: $distance meters")

}